Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for debugging servers in the VSCode Playground #425

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

alcarney
Copy link
Collaborator

@alcarney alcarney commented Dec 20, 2023

This adds back the ability for language servers to be debugged through the example VSCode extension.
Rather than make the user launch the client and server separately and using a TCP connection, the extension now uses the official Python extension to wrap the server in a debug adapter and automatically starts the debug session.

To debug the server set the pygls.server.debug option to true.

This will go towards #424 (though the docs will still need to be updated)

Code review checklist (for code reviewer to complete)

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Commit messages are meaningful (see this for details)
  • Tests have been included and/or updated, as appropriate
  • Docstrings have been included and/or updated, as appropriate
  • Standalone docs have been updated accordingly

@alcarney alcarney merged commit d83e090 into openlawlibrary:main Dec 22, 2023
15 checks passed
@alcarney alcarney deleted the vscode-debug branch December 22, 2023 16:47
@tombh tombh mentioned this pull request Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants